{% extends "IMTUserBundle::layout-connexion.html.twig" %}

{% block content %}
<form id="login" class="form-horizontal" action="{{ path("imt_oauth_server_auth_login_check") }}" method="post" style="margin:0;">
    <div class="form_title">  
	    OAuth Authorization  
    </div>  
    {% if error %}  
    <div class="alert alert-error">
		<strong>Erreur :</strong> {{ error }}
	</div>
    {% endif %} 
    <div class="control-group">
		<label class="control-label" for="username">Identifiant</label>
		<div class="controls">
			<input type="text" id="username" name="_username" />
		</div>
	</div>
    
	<div class="control-group">
		<label class="control-label" for="password">Mot de passe</label>
		<div class="controls">
			<input type="password" id="password" name="_password" />
		</div>
	</div>
		 
    <div class="modal-footer">
    	<input class="btn btn-primary" type="submit" name="_submit" value="Se connecter">
  	</div>
</form> 